package com.yusys.pattern.mode.single;

/**
 * 饿汉式 线程安全单例
 * 再类创建时就创建一个静态对象，天生线程安全
 */
public class SafeSingle1 {
    public SafeSingle1() {
    }

    private static final SafeSingle1 instance = new SafeSingle1();

    public static SafeSingle1 getInstance(){
        return instance;
    }
}
